//
//  HomeTableCellButton.m
//  groupProject
//
//  Created by mac on 15/12/22.
//  Copyright © 2015年 mac. All rights reserved.
//

#import "HomeTableCellButton.h"

@implementation HomeTableCellButton{
    CGRect rect;
}

- (id) initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    rect = frame;
    return self;
}

-(CGRect)imageRectForContentRect:(CGRect)contentRect {
    contentRect = CGRectMake(0, rect.size.height*0.2, rect.size.width, rect.size.height*0.8);
    return contentRect;
}

-(CGRect)titleRectForContentRect:(CGRect)contentRect {
    contentRect = CGRectMake(0, 0, rect.size.width, rect.size.height*0.2);
    return contentRect;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
